<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<META NAME="GENERATOR" Content="Microsoft Developer Studio">
<META HTTP-EQUIV="Content-Type" content="text/html; charset=gb_2312-80">
<TITLE>Document Title</TITLE>
</head>
<body>

<OBJECT
          	id=TUHFReader18 
	  	codebase="UHFReader18Proj.ocx"
		classid="clsid:1187A369-7CFD-4949-AFFD-3CD615827DBD"
	  	width=0
	  	height=0
	  	align=center
	  	hspace=0
	  	vspace=0
		>
		</OBJECT>

<script language="javascript"> 
    var str;
    function doopen() 
    { 
        var Port = "3";
        var Baud="5";
        
      
        var sum = TUHFReader18.Open(Port,Baud);
        if(sum=="00") 	
        document.getElementById("Snr").innerText="设备连接成功";
        else
        document.getElementById("Snr").innerText="设备连接失败";
    } 
    function doclose() 
    { 
        var sum = TUHFReader18.Close(); 	
        if(sum=="00") 	
        document.getElementById("Snr").innerText="设备关闭成功";
        else
        document.getElementById("Snr").innerText="设备关闭失败";
    } 
   

</script> 

<table border="1" width= "400 "> 
<tr>
<td colspan="4" style="text-align:center" >超高频设备网页通讯测试程序
</td>
</tr>

<tr>
<td>通讯：</td>
<td><input type="button" value="连接" id="button1" onclick="doopen();"></input> </td>
<td><input type="button" value="关闭" id="button2" onclick="doclose();"></input></td>
</tr>

<tr>
  <td>信息:</td>
  <td colspan="3"><input type="text"  style="width:280px;"  name="Snr"></td>
</tr> 

</body>